package com.whfc.fmam.service;

import com.whfc.common.exception.BizException;
import com.whfc.common.result.PageData;
import com.whfc.fmam.entity.dto.FmamWarehouseDTO;
import com.whfc.fmam.entity.qo.WarehouseAddQO;
import com.whfc.fmam.entity.qo.WarehouseEditQO;

import java.util.List;

/**
 * @Author: ；likang
 * @Description:
 * @Date:Create：in 2019/11/14 14:50
 * @Version：1.0
 */
public interface FmamWarehouseService {

    /**
     * 查询仓库列表
     *
     * @param pageNum
     * @param pageSize
     * @param deptId
     * @return
     */
    PageData<FmamWarehouseDTO> listFmamWarehouseDTO(Integer pageNum, Integer pageSize, Integer deptId) throws BizException;

    /**
     * 根据deptId 获取仓库  微信小程序使用
     *
     * @param deptId deptId
     * @return List<FmamWarehouseDTO>
     */
    List<FmamWarehouseDTO> listFmamWarehouseDTO(Integer deptId) throws BizException;

    /**
     * 新增仓库
     *
     * @param warehouseAddQO
     */
    void addWarehouse(WarehouseAddQO warehouseAddQO) throws BizException;

    /**
     * 编辑仓库
     *
     * @param warehouseEditQO
     */
    void editWarehouse(WarehouseEditQO warehouseEditQO) throws BizException;

    /**
     * 启用仓库
     *
     * @param id
     */
    void enableWarehouse(Integer id) throws BizException;

    /**
     * 禁用仓库
     *
     * @param id
     */
    void disableWarehouse(Integer id) throws BizException;

    /**
     * 删除仓库
     *
     * @param id
     */
    void deleteWarehouse(Integer id) throws BizException;
}
